package com.pengtu.gsj.service.impl.gj;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pengtu.gsj.dao.base.Page;
import com.pengtu.gsj.dao.base.QueryFilter;
import com.pengtu.gsj.dao.gj.BasicInfoDao;
import com.pengtu.gsj.entity.gj.BasicInfo;
import com.pengtu.gsj.service.gj.BasicinfoService;

/**
 * 
 * 
 * BasicinfoServiceImpl
 * 
 * 2017年4月20日 上午10:43:17
 * 
 * @version 1.0.0
 * 
 */
@Transactional
@Service
public class BasicinfoServiceImpl implements BasicinfoService {

	@Autowired
	private BasicInfoDao basicinfoDao;

	@Override
	public List<BasicInfo> getBasicinfos(QueryFilter queryFilter) {
		return basicinfoDao.find(queryFilter);
	}

	@Override
	public Page<BasicInfo> findBasicinfos(Page<BasicInfo> page,
			QueryFilter queryFilter) {
		return basicinfoDao.findPage(page, queryFilter);
	}

	@Override
	public BasicInfo getBasicinfo(String id) {
		return basicinfoDao.get(id);
	}

	@Override
	public void saveBasicinfo(BasicInfo basicinfo) {
		basicinfoDao.save(basicinfo);
	}

	@Override
	public void deleteBasicinfo(String id) {
		basicinfoDao.delete(id);

	}

}
